package com.ying.dogying.entity;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

@Component
public class Const {

    @Value("${file.upload.dir}")
    private String uploadDir;

    @Value("${file.upload.url}")
    private String uploadUrl;

    public static final Long IM_DEFAULT_USER_ID = 999L;

    // 用户在线
    public final static String ONLINE_STATUS = "online";

    // 用户隐身
    public final static String HIDE_STATUS = "hide";

    // 群ID
    public final static Long IM_GROUP_ID = 999L;

    // 群名称
    public final static String IM_GROUP_NAME = "dog-group";

    // 消息类型
    public final static String IM_MESS_TYPE_PING = "pingMessage";
    public final static String IM_MESS_TYPE_CHAT = "chatMessage";

    public static final String IM_ONLINE_MEMBERS_KEY = "online_members_key";
    public static final String IM_GROUP_HISTORY_MSG_KEY = "group_history_msg_key";

	public String getUploadDir() {
		return uploadDir;
	}

	public void setUploadDir(String uploadDir) {
		this.uploadDir = uploadDir;
	}

	public String getUploadUrl() {
		return uploadUrl;
	}

	public void setUploadUrl(String uploadUrl) {
		this.uploadUrl = uploadUrl;
	}
}
